//
//  CurrenciesEntity.h
//  HYApp
//
//  Created by Jianbo Cai on 2020/8/27.
//  Copyright © 2020 Unidax. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface Currencie : NSObject

@property (nonatomic, strong) NSString *active;
@property (nonatomic, strong) NSString *chain_type;
@property (nonatomic, strong) NSString *country;
@property (nonatomic, strong) NSString *created_at;
@property (nonatomic, strong) NSString *crs_reporting;
@property (nonatomic, strong) NSString *currencies_sequence;
@property (nonatomic, strong) NSString *decimals;
@property (nonatomic, strong) NSString *default_country;
@property (nonatomic, strong) NSString *display_symbol;
@property (nonatomic, strong) NSString *ID;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *private_address;
@property (nonatomic, strong) NSString *public_address;
@property (nonatomic, strong) NSString *token_image_url;
@property (nonatomic, strong) NSString *token_name;
@property (nonatomic, strong) NSString *token_official_url;
@property (nonatomic, strong) NSString *type;
@property (nonatomic, strong) NSString *updated_at;
@property (nonatomic, strong) NSString *min_swapping_balance_in_base;

@end



@interface CountryEntity : NSObject
@property (nonatomic, strong) NSString *countryName;
@property (nonatomic, strong) NSString *countryId;
@end


@interface CurrenciesEntity : NSObject

@property (nonatomic, strong) NSArray<Currencie *> *currencieList;
@property (nonatomic, strong) NSArray<CountryEntity *> *countryList;

@property (nonatomic, strong, readonly) NSArray *symbolSortArray;

- (Currencie *)getCurrencieWithDisplaySymbol:(NSString *)display_symbol;
- (CountryEntity *)getCountryEntityWithCountryId:(NSString *)countryId;

CurrenciesEntity *Currencies(void);

@end

NS_ASSUME_NONNULL_END
